
import request from "../utils/request";

// 登录接口

const Login = (loginInfo)=>{
    return request.post('/api/auth/login',loginInfo)
}

// 获取用户信息

const getUserInfo = ()=>{
    return request.get('/api/admin/user')
}

// 退出登录

const userLogOut = ()=>{
    return request({
        url:'/api/auth/logout',
        method:'POST'
    })
}


export {
    Login,
    getUserInfo,
    userLogOut
}